package bk;

import java.applet.*;
import java.awt.*;
public class Lab1105 extends Applet {
	private static final long serialVersionUID = 1L;
	public void paint(Graphics g)
	{
		Graphics2D g2D= (Graphics2D)g;
			
		g2D.setColor(new Color (192,192,192));
		int x=35;
		int y=10;
		for ( int i=0;i<8;i++)
		{
			for (int j=0;j<8;j = j+2)
			{
				g2D.fill(new Rectangle(x,y,25,25));	
				x=x+50;
			}
			y=y+25;
			if (x==235) 
			{ 
				x=10;
			}
			else{
				x=35;
			}
		}
		g2D.setColor(new Color (0,0,0));
		g2D.draw(new Rectangle(10,10,200,200));
	}
}
